Determine the value returned by the function. Pay close attention to variable types!
def add_num(num):
total = num + 2.5
return total
Function Call | Return Value | |||
---|---|---|---|---|
add_num(2.25) | → | |||
add_num(-2) | → | |||
add_num(10) | → | |||
add_num(-2.75) | → |
Experiment with this code on Gitpod.io